const formatPrice = (price, number) => {
  const num = number || 2
  return price.toFixed(num)
}

const formatNumber = n => {
  n = n.toString()
  return n[1] ? n : '0' + n
}


module.exports = {
  formatPrice,
  formatNumber
}
